<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class test
{
  protected $var = 'var' ;

  function __construct()
  {
     echo $this->var ;
     echo __CLASS__ ;
  }
}

class test2 extends test
{
  protected $var = 'foo' ;
  
  function __construct()
  {
     echo __CLASS__ ;
     parent::__construct() ;
  }
}

$test = new test2() ;


?>
